package bsh.meta;

import java.util.Collection;
import java.util.Collections;
import java.util.List;

/**
 * typewrapper para void
 * 
 * @author takeshi
 */
public final class VoidTypeWrapper extends AbstractTypeWrapper implements TypeWrapper {

    /**
     * {@inheritDoc}
     */
    public String className() {
        return "void";
    }

    /**
     * {@inheritDoc}
     */
    public List<? extends TypeWrapper> interfaces() {
        return Collections.emptyList();
    }

    /**
     * {@inheritDoc}
     */
    public String internalName() {
        return "void";
    }

    /**
     * {@inheritDoc}
     */
    public boolean isInterface() {
        return false;
    }

    /**
     * {@inheritDoc}
     */
    public TypeWrapper superType() {
        return null;
    }

    /**
     * {@inheritDoc}
     */
    public String typeDescription() {
        return "V";
    }

    /**
     * {@inheritDoc}
     */
    public Collection<? extends FieldDescriptor> visibleFields() {
        return Collections.emptyList();
    }

    /**
     * {@inheritDoc}
     */
    public Collection<? extends MethodDescriptor> visibleMethods() {
        return Collections.emptyList();
    }

    /**
     * {@inheritDoc}
     */
    public Collection<? extends List<TypeWrapper>> visibleConstructors() {
        return Collections.emptyList();
    }

    /**
     * {@inheritDoc}
     * 
     * @see bsh.meta.TypeWrapper#protectedFields()
     */
    public Collection<? extends FieldDescriptor> protectedFields() {
        return Collections.emptyList();
    }

    /**
     * {@inheritDoc}
     * 
     * @see bsh.meta.TypeWrapper#protectedMethods()
     */
    public Collection<? extends MethodDescriptor> protectedMethods() {
        return Collections.emptyList();
    }

    /**
     * {@inheritDoc}
     */
    public Collection<? extends TypeWrapper> getInnerTypes() {
        return Collections.emptyList();
    }

    /**
     * {@inheritDoc}
     */
    public TypeWrapper getEnclosingType() {
        return null;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public int hashCode() {
        return 1;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public boolean equals(Object obj) {
        return obj instanceof VoidTypeWrapper;
    }

}
